package com.dianping.cat.core.dal;

import java.util.Date;
import java.util.List;
import org.unidal.dal.jdbc.AbstractDao;
import org.unidal.dal.jdbc.DalException;
import org.unidal.dal.jdbc.Readset;
import org.unidal.dal.jdbc.Updateset;

public class HourlyReportContentDao extends AbstractDao {
/* 11 */   public HourlyReportContent createLocal() { return new HourlyReportContent(); }





/* 17 */   public int deleteByPK(HourlyReportContent proto) throws DalException { return getQueryEngine().deleteSingle(HourlyReportContentEntity.DELETE_BY_PK, proto); }




  public List<HourlyReportContent> findOverloadReport(int startId, Readset<HourlyReportContent> readset) throws DalException {
/* 23 */     HourlyReportContent proto = new HourlyReportContent();

/* 25 */     proto.setStartId(startId);

/* 27 */     return getQueryEngine().queryMultiple(HourlyReportContentEntity.FIND_OVERLOAD_REPORT, proto, readset);
  }






  public HourlyReportContent findByPK(int keyReportId, Date period, Readset<HourlyReportContent> readset) throws DalException {
/* 36 */     HourlyReportContent proto = new HourlyReportContent();

/* 38 */     proto.setKeyReportId(keyReportId);
/* 39 */     proto.setPeriod(period);

/* 41 */     return (HourlyReportContent)getQueryEngine().querySingle(HourlyReportContentEntity.FIND_BY_PK, proto, readset);
  }








/* 51 */   protected Class<?>[] getEntityClasses() { return new Class[] { HourlyReportContentEntity.class }; }



/* 55 */   public int insert(HourlyReportContent proto) throws DalException { return getQueryEngine().insertSingle(HourlyReportContentEntity.INSERT, proto); }





/* 61 */   public int updateByPK(HourlyReportContent proto, Updateset<HourlyReportContent> updateset) throws DalException { return getQueryEngine().updateSingle(HourlyReportContentEntity.UPDATE_BY_PK, proto, updateset); }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/core/dal/HourlyReportContentDao.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */